
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>问卷调查</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <link href="http://nsr.9hive.cn/global/vendor/icheck/icheck.min.css" rel="stylesheet">
    <link href="http://nsr.9hive.cn/global/vendor/icheck/skins/flat/blue.css" rel="stylesheet">
    <link href="http://nsr.9hive.cn/hive/active/css/questionnaire.css" rel="stylesheet">
    <style>
        #password{
            border: 1px solid #227D4C !important;
            height: 37px;
            width: 60%;
            margin-left: 10px;
        }
        .logo{
            width: 100px;
            height: 100px;
        }
    </style>

</head>
<body>
<div>
    <div class="flex-horziontal" style="padding-top: 60px">
        <img src="http://nsr.9hive.cn/hive/active/img/logo1.jpg" class="logo"><br>
    </div>
    <div class="background-class" style=";padding: 0 20px 50px;color: #666">
        <div style="padding-top: 20px;text-align: center;">
                密码:<input id="password" type="password" >
        </div>


        <div style="padding-top: 20px;text-align: center">
            <button class="hive-btn" style="width: 25vw;height: 40px" id="confirm">登录</button>
        </div>


    </div>

</div>

<script src="http://nsr.9hive.cn/global/vendor/jquery/jquery-3.2.1.min.js"></script>
<script src="http://nsr.9hive.cn/global/vendor/ydui/js/ydui.js"></script>
<script src="http://nsr.9hive.cn/global/vendor/icheck/icheck.min.js"></script>

<script src="https://static.9hive.cn/global/vendor/layer/layer.js"></script>
<script>
    (function () {
        $('#confirm').on('click', function () {
            var password = $('#password').val();

            $.ajax({
                url: '/active/questionnaire/toLogin',
                data: {
                    "password": password,

                },
                success: function(data){
                    if (data.state == 'ok'){
                        layer.msg(data.info);
                        setTimeout(function () {
                            window.location.href="/active/questionnaire/list";
                        },1500);

                    }else{
                        layer.msg(data.info);
                    }
                }

            })
        })
    })()
</script>
</body>
</html>